package org.jeecg.modules.lab.util;

import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 获取线程池
 */
@Component
public class ExecutorServiceGet {
    @Bean(name = "executorService")
    public ExecutorService getExecutorService(){
        return Executors.newFixedThreadPool(100);
    }
}
